package wf.source.hrm;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;
import wf.source.hrm.domain.Sso;
import wf.source.hrm.util.AjaxResult;

@Component//能扫描到
public class SsoClientFallbackFactory implements FallbackFactory<SsoClient>{
    @Override
    public SsoClient create(Throwable throwable) {
        return new SsoClient() {
            @Override
            public AjaxResult addOrUpate(Sso sso) {
                return null;
            }

            @Override
            public AjaxResult delete(Long id) {
                return null;
            }

            @Override
            public Sso get(Long id) {
                return null;
            }
        };
    }
}
